﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OS.Instructions
{
    class Halt : Instruction
    {
        public Halt()
        {
        }//end default constructor

        /// <summary>
        /// Executes the the H instruction
        /// </summary>
        public override void ExecuteHInstruction()
        {
            Trace.WriteToTrace("Executing instruction: " + QueueManager.readyQueue.Peek().register_IR);

            CPU.SI = 3;
            Trace.WriteToTrace("Setting SI to 3 to request termination.");
        }//end ExecuteInstruction
    }//end Halt
}//end OS.Instructions
